package com.kx.center.service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.kx.center.entity.MsgNotice;
import com.kx.center.entity.MsgSend;

public interface MsgNoticeService {

	//web端notice列表 及 列表条数
	public List<MsgNotice> findNoticeListByPage(int companyId,int pageNow ,int pageSize);
	
	public int getPageCount(int companyId);
	
	//app端notice列表 及 列表条数
	public List<MsgSend> findAppNoticeListByPage(int pageNow, int pageSize, int appAccountId);
	
	public int getAppNoticePageCount(int appAccountId);
	
	//修改发送公告的查看状态
	public void changeSendStatus(int sendId);
	
	//查询当前发送公告的消息体id
	public int findNoticeMsgId(int sendId);
	
	//修改公告消息体的查看人数
	public void changeNoticeCheckedNum(int noticeId);

	public List<MsgSend> findUncheckedMsg(int appAccountId);

	public void sendNoticeMsg(MsgNotice msgNotice, ArrayList<HashMap<String, Object>> data);
	
	public void addNoticeMsg(MsgNotice msgNotice);
	
	public void updateSendNum(int noticeId,int successNum);

	public String findNoticeDeailById(int msgSendId);
	
	//查询所有门店用户
	public ArrayList<HashMap<String, Object>> findAllAppAccount(int companyId);

	public String findNoticeDeailWebById(int noticeId);

	public void removeNotice(int noticeId);
	
}
